﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SmallTfs
{
    public class LabelSpec
    {
        public int StartId { get; set; }
        public int EndId { get; set; }
        public int Id { get; set; }
        public string Name { get; set; }

        public List<TaskItem> Tasks { get; set; }

        public DateTime DateCreated { get; set; }

        public int CheckId { get; set; }
        public int TaskCount
        {
            get
            {
                if (Tasks == null)
                    Tasks = new List<TaskItem>();

                return Tasks.Count;

            }

        }
    }
}
